<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="layout :: htmlhead" th:with="title='管理'"></head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!--头-->
    <div th:replace="fragments/head :: header"></div>

    <div class="layui-body" style="margin: 1%">
        <blockquote class="layui-elem-quote">招聘管理列表</blockquote>
        <table id="recruitList" lay-filter="recruitTable"></table>

        <script type="text/html" id="optBar">
            <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
            <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
        </script>
    </div>

    <!--添加或编辑-->
    <div id="setRecruit" class="layer_self_wrap" style="width:900px;display:none;">
        <form id="recruitForm" class="layui-form layui-form-pane" method="post" action=""
              style="margin-top: 20px; margin-left: 20px;">
            <input id="pageNum" type="hidden" name="pageNum"/>
            <input id="id" type="hidden" name="id"/>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">招聘部门</label>
                    <div class="layui-input-block" style="width: 350px">
                        <input type="text" name="department1" id="department1" autocomplete="off" placeholder="请输入部门名称"
                               class="layui-input" lay-verify="department1">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">招聘职位</label>
                    <div class="layui-input-inline" style="width: 350px">
                        <input type="text" name="position1" id="position1" autocomplete="off" placeholder="请输入职位名称"
                               class="layui-input" lay-verify="position1">
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">发布日期</label>
                    <div class="layui-input-block" style="width: 350px">
                        <input type="text" name="date1" id="date1" autocomplete="off" placeholder="请选择发布日期"
                               class="layui-input" lay-verify="date1">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">工作地点</label>
                    <div class="layui-input-inline" style="width: 350px">
                        <input type="text" name="place1" id="place1" autocomplete="off" placeholder="请输入工作地点"
                               class="layui-input" lay-verify="place1">
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">招聘人数</label>
                    <div class="layui-input-block" style="width: 350px">
                        <input type="text" name="number1" id="number1" autocomplete="off" placeholder="请输入招聘人数"
                               class="layui-input" lay-verify="number1">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">工作经验</label>
                    <div class="layui-input-inline" style="width: 350px">
                        <input type="text" name="experience1" id="experience1" autocomplete="off"
                               placeholder="请输入工作经验"
                               class="layui-input" lay-verify="experience1">
                    </div>
                </div>
            </div>

            <div class="layui-form-item layui-form-text" style="width: calc(57%)">
                <label class="layui-form-label">岗位职责</label>
                <div class="layui-input-block">
                    <textarea name="recruitDuty1" id="recruitDuty1" placeholder="请输入内容" class="layui-textarea"
                              lay-verify="recruitDuty1"></textarea>
                </div>
            </div>

            <div class="layui-form-item layui-form-text" style="width: calc(57%)">
                <label class="layui-form-label">任职要求</label>
                <div class="layui-input-block">
                    <textarea name="recruitQua1" id="recruitQua1" placeholder="请输入内容" class="layui-textarea"
                              lay-verify="recruitQua1"></textarea>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block" style="margin-left: 10px">
                    <button class="layui-btn" lay-submit lay-filter="recruitEdit">提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>


    <!--底部-->
    <div th:replace="fragments/footer :: footer"></div>
    <script src="/js/dateUtils.js"></script>
    <script src="/js/manage/recruitManage.js"></script>

</div>
</body>
</html>